package com.hkts.naturalgas.performance.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.hkts.naturalgas.performance.entity.HkAssessmentScore;
import com.hkts.naturalgas.performance.performanceVo.AssessmentHontUserQueryVo;
import com.hkts.naturalgas.performance.performanceVo.PerformanceInfoNameAndUserNickVo;
import com.hkts.naturalgas.performance.performanceVo.PerformanceScoreListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author yck
 * @since 2020-12-16
 */
@Mapper
public interface HkAssessmentScoreMapper extends BaseMapper<HkAssessmentScore> {
    public void updateStateByProcessInstanceId(HkAssessmentScore score);

   public void updateIsCurrentByProcessInstanceId(HkAssessmentScore score);

    List<PerformanceInfoNameAndUserNickVo> getHkAssessmentInfoAndUserNickNameByProIds(List<String> ids);

    List<PerformanceScoreListVo> getHkAssessmentScoreByProId(String proessId);

    Map<String,Integer> selectScoreByHontUserOnDepartementPositive(String beginDate, String endDate, List<String> list, String userId);
    /*List<Map<String,Object>> selectHistoryByHontUser(AssessmentHontUserQueryVo assessmentHontUserQueryVo);*/
    List<Map<String,Object>> selectHistoryByProcessId(String processId);
    List<Map<String,Object>> selectHistoryByHontUserCount(AssessmentHontUserQueryVo assessmentHontUserQueryVo);
    List<Map<String,Object>> selectHistoryByHontUserAndTime(AssessmentHontUserQueryVo assessmentHontUserQueryVo);
    Map<String,Integer> selectScoreByHontUserPositive(String beginDate, String endDate, String userId);
}
